package com.alks.function.data.request.chengKong;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author: chen
 * @date: 2024/11/26
 * @description: 针车工序保存参数
 */
@Data
@ApiModel(value = "针车工序保存参数")
public class StitchProcessSaveReq {

    @NotEmpty(message = "型体必填")
    @ApiModelProperty(value = "型体")
    private String style;

    @NotEmpty(message = "颜色必填")
    @ApiModelProperty(value = "颜色")
    private String color;

    @NotNull(message = "工序必填")
    @ApiModelProperty(value = "工序列表")
    private List<Item> items;

    @Data
    @ApiModel
    static public class Item {

        @NotEmpty(message = "序号必填")
        @ApiModelProperty(value = "序号")
        private Integer seqNo;

        @NotEmpty(message = "作业流程必填")
        @ApiModelProperty(value = "作业流程")
        private String processName;

        @NotNull(message = "单价必填")
        @ApiModelProperty(value = "单价")
        private BigDecimal price;

        @ApiModelProperty(value = "备注")
        private String remark;
    }
}
